﻿using System.Collections.Generic;
using System.Linq;

namespace HsVoice
{
    public class SHsSynth
    {
        public List<byte[]> payload = new List<byte[]>();
        public bool isEnd;

        public void Clear()
        {
            payload.Clear();
            isEnd = false;
        }

        public byte[] AudioBytes()
        {
            byte[] data = null;
            for (int i = 0; i < payload.Count; i++)
            {
                if (i == 0)
                    data = payload[i];
                else
                    data = data.MergeBytes(payload[i]);
            }
            return data;
        }
    }
}